using UnityEngine;
using System.Collections;

public class SendPartnerInfo : MonoBehaviour {
	
	public int partnerId;
	public GameObject roleWindow;
	
	UICheckbox checkBox;
	RoleInfoWindowOperation initRoleWindow;
	
	// Use this for initialization
	void Start () {
		checkBox = GetComponent<UICheckbox>();
		if(roleWindow)
			initRoleWindow = roleWindow.GetComponent<RoleInfoWindowOperation>();
		
		if(checkBox != null){
			checkBox.onStateChange += OnActivateDelegate;
		}
	}
	
	void OnActivateDelegate(bool isActive){
		if(isActive){
			if(roleWindow == null){
				Debug.Log("Please reference roleInfoWindow!");
				return;
			}
			
			//initRoleWindow.Init(partnerId);
		}
	}
}
